Can't replace linebreaks in an mysql error string